﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;


namespace HtmlFormat
{
    /// <summary>
    /// Summary description for DeleteHtmlFormat
    /// </summary>
    public class HtmlFormat
    {
        public HtmlFormat()
        {

            //
            // TODO: Add constructor logic here
            //
        }
        public static string DeleteHtmlFormat(string inputstring)
        {
            string strOutput = inputstring;
            System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex(@"<[^>]+>|]+>");
            strOutput = regex.Replace(strOutput, "");
            return strOutput;
        }
    }
}
